﻿// -------------------------------------------------------------------------
//    @FileName         :    NFCityPlayerModule.h
//    @Author           :    gaoyi
//    @Date             :    2025-02-27
//    @Email			:    445267987@qq.com
//    @Module           :    NFCityPlayerModule
//
// -------------------------------------------------------------------------

#pragma once

#include "NFLogicCommon/NFMMODynamicModule.h"

class NFCityPlayerModule : public NFMMODynamicModule
{
public:
    explicit NFCityPlayerModule(NFIPluginManager* p);
    ~NFCityPlayerModule() override;

    int Awake() override;

    int Init() override;

    int Tick() override;

    int AfterObjFromDBLoaded() override;
public:
    /**
     * @brief 处理客户端消息
     * @param unLinkId
     * @param packet
     * @return
     */
    int OnHandleClientMessage(uint64_t unLinkId, NFDataPackage& packet) override;

    /**
     * @brief 处理来自服务器的信息
     * @param unLinkId
     * @param packet
     * @return
     */
    int OnHandleServerMessage(uint64_t unLinkId, NFDataPackage& packet) override;
public:
    int OnHandleServerOtherMessage(uint64_t unLinkId, NFDataPackage& packet);
};
